<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>thymeleaf index</title>
</head>
<body style="margin-left: 100px;margin-top: 20px;">
<h2>thymeleaf index page</h2>
<a href="https://read.douban.com/reader/ebook/33154430/" target="_blank">thymeleaf 文档</a>
<table>
    <tr>
        <th>id</th>
        <th>name</th>
        <th>time</th>
    </tr>
    <tr th:each="l:${list}">
        <td th:text="${l.id}"></td>
        <td th:text="${l.name}"></td>
        <td th:text="${#dates.format(l.time, 'yyyy-MM-dd HH:mm:ss')}"></td>
    </tr>
</table>
</body>
</html>